package cn.itcast.oa.service;

import java.util.List;

import cn.itcast.oa.base.BaseDao;
import cn.itcast.oa.domain.Department;


public interface DepartmentService extends BaseDao<Department> {

//	List<Department> findAll();
//
//
//	void save(Department department);
//
//
//	Department getById(Long id);
//
//
//	void update(Department department);
//
//
//	void delete(Long id);


	/**
	 * 查询子部门列表
	 * 
	 * @param parentId
	 * @return
	 */
	List<Department> findChildren(Long parentId);


	/**
	 * 查询顶级部门列表
	 * 
	 * @return
	 */
	List<Department> findTopList();

}
